#include "Systick.h"
#include "Global.h"


volatile unsigned long DelayTime;

void systick_config(void)
{
	SysTick_Config(SYSTEMTICK_CLK); 
}

void Systick_Delay(unsigned long nTime)
{
	DelayTime = nTime;

	while(DelayTime != 0);
}

void TimingDelay(void)
{
	if(DelayTime != 0)
	{
		DelayTime--;
	}
}



